package com.acdc.config.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 电价执行时间段对象 electricity_exec_time
 * 
 * @author acdc
 * @date 2025-05-20
 */
public class ElectricityExecTime extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 电价配置ID，关联 electricity_config.id */
    private Long configId;

    /** 时间段编码（来自字典表） */
    @Excel(name = "时间段编码", readConverterExp = "来=自字典表")
    private String timePeriodCode;

    /** 执行开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "执行开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 执行结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "执行结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 该时间段电价（元/度） */
    @Excel(name = "该时间段电价", readConverterExp = "元=/度")
    private Float price;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setConfigId(Long configId) 
    {
        this.configId = configId;
    }

    public Long getConfigId() 
    {
        return configId;
    }
    public void setTimePeriodCode(String timePeriodCode) 
    {
        this.timePeriodCode = timePeriodCode;
    }

    public String getTimePeriodCode() 
    {
        return timePeriodCode;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setPrice(Float price) 
    {
        this.price = price;
    }

    public Float getPrice() 
    {
        return price;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("configId", getConfigId())
            .append("timePeriodCode", getTimePeriodCode())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("price", getPrice())
            .toString();
    }
}
